package com.cyy.demo.common;

public enum MonthEnum {
    Jan("01", "一"), Feb("02", "二"), Mar("03", "三"), Apr("04", "四"), May("05", "五"), Jun("06", "六"),
    Jul("07", "七"), Aug("08", "八"), Sept("09", "九"), Oct("10", "十"), Nov("11", "十一"), Dec("12", "十二");
    private String name;
    private String value;

    MonthEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getValue(String name) {
        for (MonthEnum value : MonthEnum.values()) {
            if (value.name.equals(name)) {
                return value.value;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }


}
